﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="paybatch.aspx.cs" Inherits="IsPay.paybatch" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- Bootstrap 使用了2的,IE兼容性更好-->
    <link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
    <script type="text/javascript" src="./Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="./bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="./bootstrap/js/bootbox.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#batchpay").on("click", ArrFunc.checkAndPost);
        });
        var ArrFunc = {
            checkAndPost: function () {
                var authCode = $("#authCode").val();
                $.ajax({
                    type: "POST",
                    data: { authCode: authCode },
                    url: "../api/authCodeCheck.ashx",
                    cache: false,
                    dataType: "json",
                    success: function (retData) {
                        if (retData == "0") {
                            //Return OK,post data
                            ArrFunc.postData();
                        } else {
                            $("#authCode").val("");
                            bootbox.alert("验证码不正确!");
                        }
                    },
                    error: function () {
                        $("#authCode").val("");
                        bootbox.alert("验证码不正确!");
                    }

                });
            },

            postData: function () {

            },
        }
    </script>
</head>
<body>
    <div class="container-fluid">
        <div class="row-fluid">
            <h3 class="title">转账确认</h3>
            <div class="mod-con">
                <form action="#" method="post" name="searchForm" id="searchForm" class="m-form transfer-form">
                    <input type="hidden" id="phone" />
                    <div class="row-fluid">
                        <div class="span12">
                            <table class="table table-hover" id="dt_gal">
                                <thead>
                                    <tr>
                                        <th class="input-medium">收款银行</th>
                                        <th class="input-medium">收款人姓名</th>
                                        <th class="input-large">收款卡号</th>
                                        <th class="input-small">金额</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <%=tbBody%>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </form>
                <form class="m-form form_validation_tip">
                    <div class="input-group">
                        <asp:Label ID="lblOrderCount" runat="server" Text="订单总笔数:"></asp:Label>
                    </div>
                    <div class="input-group">
                        <asp:Label ID="lblSumAmonut" runat="server" Text="总金额:"></asp:Label>
                    </div>
                    <div class="input-group">
                        <label for="safeCode" class="lab"><sup>*</sup>支付密码：</label>
                        <input type="password" name="safeCode" id="con_safeCode" class="ipt" />
                    </div>
                    <div id="div_phoneCode">
                        <div class="input-group">
                            <label for="phoneCode" class="lab"><sup>*</sup>动态密码：</label>
                            <div class="sepH_b">
                                <input type="text" name="phoneCode" id="phoneCode" class="ipt code" />
                                <span class="inline">
                                    <button class="btn btn-default btn-success btn-again-send" type="button" phonetype="batchpay">点击发送</button>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div id="div_token">
                        <div class="input-group">
                            <label for="token" class="lab"><sup>*</sup>安全令牌：</label>
                            <input type="text" name="token" id="token" class="ipt" />
                        </div>
                    </div>
                    <div class="input-group">
                        <label class="lab"><sup>*</sup>验证码：</label>
                        <input type="text" name="authCode" id="authCode" class="ipt code" />
                        <img src="../View/VarifyCode.aspx" width="98" height="27" onclick="this.src=this.src+'?'" />
                    </div>
                    <div class="btn-group">
                        <button type="button" id="batchpay" class="btn btn-primary btn-submit-batchpay">&nbsp;提 交&nbsp;</button>
                        <a id="goback" class="btn btn-default btn-submit-goback">&nbsp;返 回&nbsp;</a>
                    </div>
                </form>
                <div class="simple-note">
                    <h4><i class="icon icon-warn"></i>交易提示</h4>
                    <p>1：秒付支持18家跨行快汇：工行，建行，农行，招行，交行，邮政，中国，兴业，华夏，浦发，平安，广发，中信，民生，光大，微商，长沙，浙江农村信用社，到账时间，一般为实时到账。</p>
                    <p>2：单笔转账最高金额不能高于49990，当金额超过49990系统将自动分拆分为多笔。例如商户提现10万元，系统将自动拆分为2笔49990元和一笔20元的款。</p>
                    <p>3：为了保证商户资金安全，请商户做好安全认证，手机认证或者绑定固定IP登录或者多个IP登录，动态IP请勿绑定，或者手机令牌。</p>
                    <p>4：商户提交出款，系统接收就不能做款项拦截，除非出款失败否则款项是实时到账。</p>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
